import './style.css';
import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
// import { registRouter } from '@/router'
import 'virtual:svg-icons-register'; // 必须引入的虚拟模块
import SvgIcon from './components/SvgIcon.vue';

import ElementPlus from "element-plus";
import "element-plus/dist/index.css";

import * as Icons from '@element-plus/icons-vue'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(ElementPlus, { size: "small", zIndex: 3000 })
app.component('SvgIcon', SvgIcon);
Object.keys(Icons).forEach((key) => {
  app.component(key, Icons[key as keyof typeof Icons])
})

app.mount('#app')

// registRouter()

